package bug.www;

import bug.dao.api.UserProjectDao;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.support.ReloadableResourceBundleMessageSource;
import org.springframework.web.bind.ServletRequestUtils;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * User: Ion C. Olaru
 * Date: Sep 14, 2008 - 10:33:37 AM
 */

public class TestController implements Controller {
    private static Log log = LogFactory.getLog(TestController.class);

    public TestController() {
        super();
        System.out.println("Constructing Test Controller.");
    }

    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
        System.out.println("Handling Test controller");
        System.out.println(request.getPathInfo());
        ModelAndView mv = new ModelAndView("/WEB-INF/views/test.jsp");
        return mv;
    }

}
